﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true" CodeFile="cart.aspx.cs" Inherits="cart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="style2" style="width: 100%">
        <tr>
            <td align="center" bgcolor="#CCCCCC" 
                
                style="font-size: xx-large; font-weight: bold; height:83px;font-style: normal; font-variant: normal; text-transform: capitalize; color: #0000FF" 
                class="style3">
                <asp:ImageButton ID="ImageButton2" runat="server" Height="60px" 
                    ImageUrl="images/shopping-cart-accept-128x128.png" Width="72px" />
                Gi&#7887; <span style="color: #FF0000">Hàng</span> <span style="color: #FFFF00">c&#7911;a</span> 
                b&#7841;n</td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gv_giohang" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" GridLines="None" Width="100%" 
                    DataKeyNames="id" onpageindexchanging="gv_giohang_PageIndexChanging" 
                    onrowcancelingedit="gv_giohang_RowCancelingEdit" 
                    onrowdeleting="gv_giohang_RowDeleting" onrowediting="gv_giohang_RowEditing" 
                    onrowupdating="gv_giohang_RowUpdating" ForeColor="#333333" 
                    style="margin-top: 0px">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:TemplateField HeaderText="Hình">
                            <ItemTemplate>
                                <asp:Image ID="Image3" runat="server" Height="75px" 
                                    ImageUrl='<%# "~/images/"+Eval("Image") %>' Width="85px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="Mã máy" Visible="False" 
                            ReadOnly="True" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="name" HeaderText="Tên máy" ReadOnly="True" 
                            ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="Quantity" HeaderText="S&#7889; l&#432;&#7907;ng" 
                            ItemStyle-HorizontalAlign="Center" DataFormatString="{0:0.##}" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="cost" HeaderText="&#272;&#417;n giá" ItemStyle-HorizontalAlign="Center"
                            DataFormatString="{0:#,#### VN&#272;}" ReadOnly="True" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="total" DataFormatString="{0:#,#### VN&#272;}"  ItemStyle-HorizontalAlign="Center"
                            HeaderText="Thành ti&#7873;n" ReadOnly="True" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:CommandField ButtonType="Image" CancelImageUrl="images/Cancel.jpg" ItemStyle-HorizontalAlign="Center"
                            CancelText="Hu&#7927;" DeleteImageUrl="images/delete.gif" DeleteText="Xoá" 
                            EditImageUrl="images/Edit.png" EditText="S&#7917;a" ShowDeleteButton="True" 
                            ShowEditButton="True" UpdateImageUrl="images/Save.jpg" UpdateText="L&#432;u" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>
                    </Columns>
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr> <td align="right">
            <asp:Image ID="Image2" runat="server"/>
            <asp:Label ID="Label1" runat="server" Text="T&#7893;ng ti&#7873;n:"></asp:Label>
            <asp:Label ID="lb_tongtien" ForeColor="#FF0000" runat="server"></asp:Label>
            </td></tr>
        <tr><td align="right">
            <asp:Label ID="lb_error" runat="server" Font-Italic="True" Font-Size="12pt" 
                ForeColor="#FF3300" Text="l&#7895;i" ToolTip="b&#7841;n ch&#432;a &#273;&#259;ng nh&#7853;p"></asp:Label>
            <asp:ImageButton ID="image_dathang" runat="server" 
                ImageUrl="images/dathang_but.gif" 
                onclick="image_dathang_Click" />
            </td></tr>
        </table> 
</asp:Content>

